package huanghui.netstorage.modle;

import java.util.HashSet;
import java.util.Set;

/**
 * Entryfile entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class EntryFile implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -1038922620600524896L;
	private Integer id;
	private String name;
	private Long uploadTime;
	private Long size;
	private Integer state;
	private String path;
	private String md5;
	private Set virtualFiles = new HashSet(0);

	// Constructors

	/** default constructor */
	public EntryFile() {
	}

	/** minimal constructor */
	public EntryFile(String name, String path, String md5) {
		this.name = name;
		this.path = path;
		this.md5 = md5;
	}

	/** full constructor */
	public EntryFile(String name, Long uploadTime, Long size, Integer state,
			String path, String md5, Set virtualFiles) {
		this.name = name;
		this.uploadTime = uploadTime;
		this.size = size;
		this.state = state;
		this.path = path;
		this.md5 = md5;
		this.virtualFiles = virtualFiles;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getUploadTime() {
		return this.uploadTime;
	}

	public void setUploadTime(Long uploadTime) {
		this.uploadTime = uploadTime;
	}

	public Long getSize() {
		return this.size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getMd5() {
		return this.md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public Set getVirtualFiles() {
		return virtualFiles;
	}

	public void setVirtualFiles(Set virtualFiles) {
		this.virtualFiles = virtualFiles;
	}

	

}